home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 4 / Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso / Science / RLaB / help / COMMAND_EDIT < prev    next >
Text File  |  1994-04-25  |  4KB  |  96 lines

  1. COMMAND_EDIT:
  2.  
  3.     Following is a description of the command line editing
  4.     key-bindings. Rlab can be configured to use the Getline (not
  5.     related to the Rlab getline function) editing interface, or
  6.     the GNU Readline editing interface. Both provide Emacs-style
  7.     command recall and editing.
  8.  
  9.     The "getline" interface is the "preferred" interface due to
  10.     it's much smaller size, and lack of dependence on Termcap,
  11.     which makes it more portable. Following is an excerpt from the
  12.     Getline man-page, which describes the command editing
  13.     key-bindings.
  14.  
  15.  
  16.      User Interface
  17.  
  18.      To edit, the user moves the  cursor  to  the  point  needing
  19.      correction  and  then inserts or deletes characters or words
  20.      as needed.  All the editing commands are control characters,
  21.      which  typed  by  holding  the  CTRL  key  down while typing
  22.      another character.  Control characters are  indicated  below
  23.      as the caret (^) followed by another character, such as ^A.
  24.  
  25.      All edit commands operate from any place on  the  line,  not
  26.      just at the beginning.
  27.  
  28.  
  29.     These are the getline key bindings.
  30.  
  31.             ^A   Move cursor to beginning of line.
  32.             ^B   Move cursor left (back) 1 column.
  33.          ESC-B   Move cursor back one word.
  34.             ^D   Delete the character under the cursor.
  35.             ^E   Move cursor to end of line.
  36.             ^F   Move cursor right (forward) 1 column.
  37.          ESC-F   Move cursor forward one word.
  38.             ^H   Delete the character left of the cursor.@
  39.             ^I   Jump to next tab stop (may be redefined  by  the
  40.                  program).
  41.             ^J   Return the current line.
  42.             ^K   Kill from cursor to the end  of  the  line  (see
  43.                  ^Y).
  44.             ^L   Redisplay current line.
  45.             ^M   Return the current line.
  46.             ^N   Fetches next line from the history list.
  47.             ^O   Toggle  overwrite/insert  mode,   initially   in
  48.                  insert mode.
  49.             ^P   Fetches previous line from the history list.
  50.             ^R   Begin a reverse incremental search through  his-
  51.                  tory  list.   Each printing character typed adds
  52.                  to the search substring (initially  empty),  and
  53.                  getline  finds  and  displays the first matching
  54.                  location.  Typing ^R  again  marks  the  current
  55.                  starting  location  and  begins a new search for
  56.                  the current substring.  Typing ^H or DEL deletes
  57.                  the  last  character from the search string, and
  58.                  getline restarts the search from the last start-
  59.                  ing  location.   Repeated  ^H  or DEL characters
  60.                  therefore appear to unwind  the  search  to  the
  61.                  match  nearest  the  point  where  the user last
  62.                  typed ^R or ^S.  Typing  ^H  or  DEL  until  the
  63.                  search  string  is empty causes getline to reset
  64.                  the start of the search to the beginning of  the
  65.                  history  list.   Typing ESC or any other editing
  66.                  character accepts the  current  match  and  ter-
  67.                  minates the search.
  68.             ^S   Begin a forward incremental search  through  the
  69.                  history  list.   The behavior is like that of ^R
  70.                  but in the opposite direction through  the  his-
  71.                  tory list.
  72.             ^T   Transpose current and previous character.
  73.             ^U   Kill the entire line (see ^Y).
  74.             ^Y   Yank previously  killed  text  back  at  current
  75.                  location.
  76.      BACKSPACE   Delete the character left of the cursor.
  77.            DEL   Delete the character left of the cursor.
  78.         RETURN   Return the current line.
  79.            TAB   Jump to next tab stop (may be redefined  by  the
  80.                  program).
  81.  
  82.      getline recognizes DOS and ANSI arrow keys.  They cause  the
  83.      following  actions:   up is the same as ^P, down is the same
  84.      as ^N, left is the same as ^P, and right is the same as ^F.
  85.  
  86. AUTHORS
  87.      Program by Christopher R. Thewalt (thewalt@ce.berkeley.edu)
  88.  
  89.      Original man page by DaviD  W.  Sanderson  (dws@cs.wisc.edu)
  90.      and Christopher R. Thewalt
  91.  
  92. COPYRIGHT
  93.  
  94.      (C) Copyright 1992,1993 by Christopher R. Thewalt and  DaviD
  95.      W. Sanderson (but freely redistributable)
  96.